package org.hq.mysecurity.sql.mapper;
import org.hq.mysecurity.sql.pojo.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
@SpringBootTest
class IuserTest {
    @Autowired
    private UserMapper userMapper;
    @Test
    void getAllUser(){
        List<User> users = userMapper.selectList(null);
        for (User user : users) {
            System.out.println(user.getUserid());

        }

    }

    @Test
    void add(){
      userMapper.insert(new User(null,"fghj","游客","1813033378",2));
    }
}